<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTestPaysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('test_pays', function (Blueprint $table) {
            $table->id();
            $table->string('app_id')->default('');
            $table->string('user_id')->default('');
            $table->string('server_id')->default('');
            $table->string('role_id')->default('');
            $table->string('moneyFen')->default('');
            $table->string('sdk_code')->default('');
            $table->tinyInteger('status')->default(0)->comment('下发状态 0:待下发 1：下发成功 -1 下发失败');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('test_pays');
    }
}
